﻿using System;
using System.Windows.Forms;

using Spencen.Mobile.UI.Navigation;
using Spencen.Mobile.UI.Easings;

using Commute.Presenters;

namespace Commute
{
    public partial class CommuteForm : Form
    {
        public CommuteForm()
        {
            InitializeComponent();

            var navigator = new TransitionNavigator( hostCanvas );
            navigator.TransitionDuration = new TimeSpan( 0, 0, 0, 0, 500 );
            navigator.TransitionEasing = new SineWaveEasing();

            var presenter = new TimetablePresenter( navigator );
            navigator.Forward( presenter.CreateView( hostCanvas ) );
        }
    }
}